#include "ProcessPool.hpp"

void test1()
{
    ProcessPool* myProcessPool = ProcessPool::getProcessPool();
    myProcessPool->TaskAllocation(0);
    myProcessPool->TaskAllocation(2);
    myProcessPool->TaskAllocation(1);
    myProcessPool->TaskAllocation(3);
    myProcessPool->TaskAllocation(5);
    myProcessPool->Destroy();
    //myProcessPool->~ProcessPool();
    // int cnt = 5;
    // while(cnt--)
    // {
        // int no = rand() % 6;
        // myProcessPool->TaskAllocation(no);
        // sleep(1);
    // }
}

int main()
{
    test1();
    return 0;
}